package com.runtu.infrastructure.dao;

import com.runtu.infrastructure.dao.po.GroupBuyOrder;
import com.runtu.infrastructure.dao.po.GroupBuyOrderList;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @ClassName IGroupBuyOrderListDao
 * @Description 用户拼单明细
 * @date 2025/8/3 16:23
 * @Version 1.0
 */
@Mapper
public interface IGroupBuyOrderListDao {

    //增加 用户拼单的明细
    void insert(GroupBuyOrderList groupBuyOrderListReq);

    //根据外部的单号去查询
    GroupBuyOrderList queryGroupBuyOrderRecordByOutTradeNo(GroupBuyOrderList groupBuyOrderListReq);


    //去数据库查
    Integer queryOrderCountByActivityId(GroupBuyOrderList groupBuyOrderListReq);

    //更新状态到完成
    int updateOrderStatus2COMPLETE(GroupBuyOrderList groupBuyOrderListReq);

    List<String> queryGroupBuyCompleteOrderOutTradeNoListByTeamId(String teamId);
}
